I'm not entirely sure I understand... if you have code in a library sending out emails, what is the trigger? Are the emails sent at the end of a user-triggered process (e.g. some kind of event), or are they sent by a scheduled agent on the server?
If the latter, then the "From" issue comes down to the Notes ID used to sign the
agent, not the underlying script library. If the former, then you can have your code amend the "Principal" field in the mail generated, and this will help. The mail will
appear to be from the nominated name, but it will still say "Sent by <real user>" beneath this address at the top of the mail.
HTH
--
http://www.benpoole.com